package com.walleipt.corgi.api.service;

import com.walleipt.corgi.api.data.DataFactory;

public class ServiceFactory_ {
	
	private static ServiceFactory_ instance;

    static {
        instance = new ServiceFactory_();
    }
    
    public int create(Object instance) {
        return DataFactory.instance().insert(instance);
    }

    public int update(Object instance) {
        return DataFactory.instance().update(instance);
    }

    public int delete(Object instance) {
        return DataFactory.instance().delete(instance);
    }

    public int delete(String tableName, String id) {
        return DataFactory.instance().delete(tableName, id);
    }

    
    
}
